package com.spike.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.sql.Timestamp;
@Component
@Data
@TableName("users")
public class User {
    @TableId(type = IdType.AUTO)
    private Integer userId;
    private String username;
    private String password;
    private String email;
    private String phoneNumber;
    private Timestamp createdAt;
    @Version
    private Integer version;
    @TableLogic(value = "1", delval = "0")
    private Integer isDeleted;
}